<?php

namespace Action;
use Library\Auth\Session;

class Main extends \Library\Action {

	public function execute() {
		parent::execute();
		
		if( Session::getSession()->isAuthenticated() ) {
			echo $this->action( 'User', $this->getParams() );
		}
		else {
			echo $this->action( 'Welcome', $this->getParams() );
		}
		
		exit(0);
	}

}
